import request from '@/utils/request'
import qs from 'qs'

// 03、读取敏感词列表
export function listAudit(data) {
  return request({
    url: '/sensitiveWords/list',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    method: 'POST',
    data: qs.stringify(data)

  })
}


// 02、删除敏感词
export function delAudit(data) {
  return request({
    url: '/sensitiveWords/deleteWord',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    method: 'POST',
    data: qs.stringify(data)

  })
}

// 04、批量导入敏感词
export function impAudit(data) {
  return request({
    url: '/sensitiveWords/importWords',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    method: 'POST',
    data: qs.stringify(data)

  })
}

//01、保存敏感词
export function addAudit(data) {
  return request({
    url: '/sensitiveWords/saveWord',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    method: 'POST',
    data: qs.stringify(data)

  })
}
//     05、读取包含敏感词的文章列表
export function getAuditRecordList(data) {
  return request({
    url: '/sensitiveWords/getAuditRecordList',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    method: 'POST',
    data: qs.stringify(data)
  })
}

//     06、读取包含敏感词的文章详情
export function getAuditRecord(data) {
  return request({
    url: '/sensitiveWords/getAuditRecord',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    method: 'POST',
    data: qs.stringify(data)
  })
}





